package com.hongxun.modules.api.service.impl;

import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.hongxun.modules.api.dao.BMaterialQuantitiesDao;
import com.hongxun.modules.api.entity.BMaterialQuantitiesEntity;
import com.hongxun.modules.api.service.BMaterialQuantitiesService;



@Service("bMaterialQuantitiesService")
public class BMaterialQuantitiesServiceImpl implements BMaterialQuantitiesService {
	@Autowired
	private BMaterialQuantitiesDao bMaterialQuantitiesDao;
	
	@Override
	public BMaterialQuantitiesEntity queryObject(String guid){
		return bMaterialQuantitiesDao.queryObject(guid);
	}
	
	@Override
	public List<BMaterialQuantitiesEntity> queryList(Map<String, Object> map){
		return bMaterialQuantitiesDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bMaterialQuantitiesDao.queryTotal(map);
	}
	
	@Override
	public void save(BMaterialQuantitiesEntity bMaterialQuantities){
		bMaterialQuantities.setGuid(UUID.randomUUID().toString());
		bMaterialQuantitiesDao.save(bMaterialQuantities);
	}
	
	@Override
	public void update(BMaterialQuantitiesEntity bMaterialQuantities){
		bMaterialQuantitiesDao.update(bMaterialQuantities);
	}
	
	@Override
	public void delete(String guid){
		bMaterialQuantitiesDao.delete(guid);
	}
	
	@Override
	public void deleteBatch(String[] guids){
		bMaterialQuantitiesDao.deleteBatch(guids);
	}
	@Override
	public void deleteByMguid(String[] guids){
		bMaterialQuantitiesDao.deleteByMguid(guids);
	}
}
